From: Paul Donald Date: Thu, 30 Oct 2025 13:30:27 +0000 (+0100) Subject: luci-mod-network: prevent loading non-existent protocol/bonding X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=7722292e88942e19210799b28320d8e051af0148;p=project%2Fluci.git luci-mod-network: prevent loading non-existent protocol/bonding Bonding is configured under interface properties, and handled by netifd. luci-proto-bonding was removed, even if the proto-bonding package is still useful. This change prevents the trace-back from attempting to load luci-proto-bonding. Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 7ce3e44c52..a6def061e4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -103,6 +103,9 @@ var _init = null, function getProtocolHandlers(cache) { return callNetworkProtoHandlers().then(function(protos) { + /* Prevent attempt to load "protocol/bonding" */ + delete protos.bonding; + /* Register "none" protocol */ if (!protos.hasOwnProperty('none')) Object.assign(protos, { none: { no_device: false } });